package com.xinqi.modules.databank.v2.manager.impl;

import com.xinqi.common.mybatis.data.service.impl.BaseServiceImpl;
import com.xinqi.modules.databank.dto.req.ResourceAnalysisQueryDTO;
import com.xinqi.modules.databank.dto.rsp.ResourceAnalysisResultDTO;
import com.xinqi.modules.databank.v2.domain.CourseResourceAnalysisEntity;
import com.xinqi.modules.databank.v2.manager.CourseResourceAnalysisManager;
import com.xinqi.modules.databank.v2.mapper.CourseResourceAnalysisMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 资料库试题分析Manager层
 * @author dzy
 */
@Service
@RequiredArgsConstructor
public class CourseResourceAnalysisManagerImpl extends BaseServiceImpl<CourseResourceAnalysisMapper, CourseResourceAnalysisEntity> implements CourseResourceAnalysisManager {

    private final CourseResourceAnalysisMapper courseResourceAnalysisMapper;


    /**
     * 资料库试题分析
     * @author dzy
     */
    @Override
    public ResourceAnalysisResultDTO findQuestionAnalysis(ResourceAnalysisQueryDTO query) {
        return courseResourceAnalysisMapper.findQuestionAnalysis(query.getClassId(), query.getContentId());
    }

}
